import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/music-main.vue";
import Detail from "../views/music-detail.vue";

const routerHistory = createWebHistory();
const router = createRouter({
    history: routerHistory,
    routes: [{
            path: "/",
            name: "app",
            component: Home,
            meta: {
                title: "首页",
            },
        },
        {
            path: "/detail",
            component: Detail,
            meta: {
                title: "详情页",
            },
        },
    ],
});
export default router;